//
//  KongWURLSessionHandle.h
//  aaa
//
//  Created by dllo on 15/11/13.
//  Copyright © 2015年 孔维. All rights reserved.
//

#import <Foundation/Foundation.h>
@class UIView;
//设置超时时间
#define kTimeOutInterval 15

typedef void(^successfulBlock)(id responseObject);
typedef void(^failureBlock)(NSError *error);
@interface KongWURLSessionHandle : NSObject<NSURLSessionDownloadDelegate>

//GET请求
+ (void)handleGETWithUrlString:(NSString *)urlString parameters:(id)parameters showHuD:(BOOL)show onView:(UIView *)hiddenView successfulBlock:(successfulBlock)successfulBlock failureBlock:(failureBlock)failureBlock;
//POST请求
+ (void)handlePOSTWithUrlString:(NSString *)urlString parameters:(NSString *)parameters showHuD:(BOOL)show onView:(UIView *)hiddenView successfulBlock:(successfulBlock)successfulBlock failureBlock:(failureBlock)failureBlock;



@end
